//========encoding:utf-8=========
/*
 * @describe:  三目运算符
 * @author:mhao
 * @copyright:chinasoft.cn
 * @date:2020年3月17日   下午10:43:01
 */
package edu.chinasoft.handle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import edu.chinasoft.pojo.JavaBean;

@Controller("handler04")
@RequestMapping("/handler04")
public class Handler04 {
	private Logger logger = LoggerFactory.getLogger(Handler04.class);
	@RequestMapping(value="/method01.do")
	public ModelAndView method01(ModelAndView modelAndView,JavaBean javaBean) {
		logger.info("Handler04>>>method01 start ……");
		modelAndView.addObject("key01", javaBean.getIntegerList());
		modelAndView.setViewName("/loginsuccess");
		logger.info("Handler04>>>method01 end ……");
		return modelAndView;
	}
	@RequestMapping(value="/method02.do")
	public ModelAndView method02(ModelAndView modelAndView,JavaBean javaBean) {
		logger.info("Handler04>>>method02 start ……");
		modelAndView.addObject("key01", javaBean.getPeopleList());
		modelAndView.setViewName("/loginsuccess");
		logger.info("Handler04>>>method02 end ……");
		return modelAndView;
	}
}
